import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
import { DevicesComponent } from "./devices/devices.component";
import { ParkGuardComponent } from "./park-guard/park-guard.component";
import { ParkingsBillingSchemeComponent } from "./parkings-billing-scheme/parkings-billing-scheme.component";
import { ParkingsComponent } from "./parkings/parkings.component";
import { PlacesComponent } from "./places/places.component";
import { UserparkingsComponent } from "./userparkings/userparkings.component";

const routes: Routes = [];

@NgModule({
    imports: [
        RouterModule.forChild([
            {
                path: "",
                children: [
                    {
                        path: "parkings",
                        component: ParkingsComponent,
                        data: { permission: "" },
                    },
                    {
                        path: "park-guard",
                        component: ParkGuardComponent,
                        data: {
                            permission: "",
                        },
                    },
                    {
                        path: "devices",
                        component: DevicesComponent,
                        data: {
                            permission: "",
                        },
                    },
                    {
                        path: "places",
                        component: PlacesComponent,
                        data: {
                            permission: "",
                        },
                    },
                    {
                        path: "userparkings",
                        component: UserparkingsComponent,
                        data: {
                            permission: "",
                        },
                    },
                    {
                        path: "parkings-billing-scheme",
                        component: ParkingsBillingSchemeComponent,
                        data: {
                            permission: "",
                        },
                    },
                ],
            },
        ]),
    ],
    exports: [RouterModule],
})
export class VehiclManagementRoutingModule {}
